Skip to main content

autoArm

Type

property

Summary

Specifies whether a button becomes armed when the mouse pointer moves into it.

Syntax

set the autoArm of <button> to {true | false}

Description

Use the autoArm property to provide visual feedback to the user about which button the mouse pointer is over. Usually, the autoArm property is used for buttons that are part of stack menus.

A button whose autoArm property is set to true does not receive mouseDown messages.

If a button's autoArm property is true, it receives keyDown and keyUp messages for keypresses that occur while the mouse is pressed and the pointer is over the button. If the button's autoArm is false, it does not receive key messages while being clicked.

Examples

set the autoArm of last button to false
set the autoArm of button "Menu Choices" to true

property: showHilite, armed, armFill, armedIcon

glossary: property, stack menu, mouse pointer, message, menu item, cascading menu

keyword: pointer, button

message: mouseDown, keyDown, keyUp

object: button

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?